- name
string name;
Enforce naming for making debugging easier
- loopCount
uint loopCount;
Undocumented in source.
- loops
bool loops;
Undocumented in source.
- deltaTime
float deltaTime;
Undocumented in source.
- accumulator
float accumulator;
Undocumented in source.
- durationSeconds
float durationSeconds;
Undocumented in source.
- isRunning
bool isRunning;
Undocumented in source.
- handlers
void delegate(float progress, uint loopCount)[] handlers;
Undocumented in source.
- type
HipTimerType type;
Undocumented in source.
- setProperties
void setProperties(string name, float durationSeconds, HipTimerType type, bool loops)
Perfect function for making a timer pool
- getName
string getName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getDuration
float getDuration()
Undocumented in source. Be warned that the author may not have intended to support it.
- getProgress
float getProgress()
Undocumented in source. Be warned that the author may not have intended to support it.
- addHandler
HipTimer addHandler(void delegate() handler)
Undocumented in source. Be warned that the author may not have intended to support it.
- addHandler
HipTimer addHandler(void delegate(float progress) handler)
Undocumented in source. Be warned that the author may not have intended to support it.
- addHandler
HipTimer addHandler(void delegate(float progress, uint loopCount) handler)
Undocumented in source. Be warned that the author may not have intended to support it.
- forceFinish
void forceFinish()
Undocumented in source. Be warned that the author may not have intended to support it.
- pause
void pause()
Undocumented in source. Be warned that the author may not have intended to support it.
- play
HipTimer play()
Undocumented in source. Be warned that the author may not have intended to support it.
- stop
void stop()
Undocumented in source. Be warned that the author may not have intended to support it.
- reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
- loopRestart
void loopRestart()
Undocumented in source. Be warned that the author may not have intended to support it.
- tick
bool tick(float dt)
Returns wether it has finished